$resultSet = $this->db->resultObject( $this->db->query( $this->getQuery( $this->filter( $term ), false ) ) );
return new MySQLSearchResultSet( $resultSet, $this->searchTerms );
}
-
-
+
+
/**
* Return a partial WHERE clause to exclude redirects, if so set
* @return string
return 'AND page_is_redirect=0';
}
}
-
+
/**
* Return a partial WHERE clause to limit the search to the given namespaces
* @return string
}
return 'AND page_namespace IN (' . $namespaces . ')';
}
-
+
/**
* Return a LIMIT clause to limit results on the query.
* @return string
function queryRanking( $filteredTerm, $fulltext ) {
return '';
}
-
+
/**
* Construct the full SQL query to do the search.
* The guts shoulds be constructed in queryMain()
*/
function updateTitle( $id, $title ) {
$dbw =& wfGetDB( DB_MASTER );
-
+
$dbw->update( 'searchindex',
array( 'si_title' => $title ),
array( 'si_page' => $id ),
$this->mResultSet = $resultSet;
$this->mTerms = $terms;
}
-
+
function termMatches() {
return $this->mTerms;
}
-
+
function numRows() {
return $this->mResultSet->numRows();
}
-
+
function next() {
$row = $this->mResultSet->fetchObject();
if( $row === false ) {